Crate ntex

source ·
Expand description

ntex - framework for composable network services

Package feature

  • openssl - enables ssl support via openssl crate
  • rustls - enables ssl support via rustls crate
  • compress - enables compression support in http and web modules
  • cookie - enables cookie support in http and web modules

Modules

Communication primitives
Utilities for encoding and decoding frames.
Tcp connector service
Http protocol support.
IO streaming utilities.
Resource path matching library.
A runtime implementation that runs everything on the current thread.
General purpose tcp server
A synchronization primitive for task wakeup.
IO testing utilities.
Utilities for tracking time.
TLS support for ntex ecosystem.
Web framework for Rust.
WebSocket protocol support.

Traits

Trait for types that can be converted to a Service
Trait for types that can be converted to a ServiceFactory
An asynchronous function from Request to a Response.
Creates new Service values.
The Transform trait defines the interface of a service factory that wraps inner service during construction.

Functions

Create ServiceFactory for function that can act as a Service
Convert object of type T to a service S
Contruct new pipeline with one service in pipeline chain.
Contruct new pipeline factory with one service factory.

Attribute Macros

Marks async function to be executed by ntex system.
Marks async test function to be executed by ntex runtime.